package com.springboot.ww.platform.pd.order.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-06-18 16:50
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class PdPriceResp implements Serializable {


    @JsonProperty("result")
    private ResultBean result;
    @JsonProperty("success")
    private boolean success;
    @JsonProperty("requestId")
    private String requestId;
    @JsonProperty("errorCode")
    private int errorCode;
    @JsonProperty("errorMsg")
    private String errorMsg;

    @JsonIgnoreProperties(ignoreUnknown = true)
    @Data
    public static class ResultBean implements Serializable {
        @JsonProperty("total")
        private int total;
        @JsonProperty("pageNo")
        private int pageNo;
        @JsonProperty("skuList")
        private List<SkuListBean> skuList;

        @JsonIgnoreProperties(ignoreUnknown = true)
        @Data
        public static class SkuListBean implements Serializable {
            @JsonProperty("status4VO")
            private Object status4VO;
            @JsonProperty("goodsId")
            private long goodsId;
            @JsonProperty("subStatus4VO")
            private Object subStatus4VO;
            @JsonProperty("crtTime")
            private long crtTime;
            @JsonProperty("specName")
            private String specName;
            @JsonProperty("price")
            private double price;
            @JsonProperty("currency")
            private String currency;
            @JsonProperty("goodsIsOnSale")
            private int goodsIsOnSale;
            @JsonProperty("stock")
            private int stock;
            @JsonProperty("thumbUrl")
            private String thumbUrl;
            @JsonProperty("goodsName")
            private String goodsName;
            @JsonProperty("skuSn")
            private String skuSn;
            @JsonProperty("skuId")
            private Long skuId;
        }
    }
}
